class CreateProjects < ActiveRecord::Migration
  def self.up
    create_table :projects do |t|
      t.string :name
      t.text :description
      t.integer :user_id
      t.string :status
      t.date :startDate
      t.date :endDate

      t.timestamps
    end

  #This project leads the general overhead hours
  Project.create :name=>'Horas generales', :description=>'proyecto creado por defecto para la administración de horas generales', :user_id=>1, :status=>'Ninguno',:startDate=>'1969-01-01',:endDate=>'2060-01-01',:id=>1
  end



  def self.down
    drop_table :projects
  end
end
